//
//  MGSBaseNaviVCtrl.swift
//  Mangosteen
//
//  Created by gby on 2022/12/15.
//

import UIKit

class BaseNaviVCtrl: UINavigationController {

    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = UIColor.white
    }
    
    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
        if self.children.count > 0 {
            viewController.hidesBottomBarWhenPushed = true
        }
        super.pushViewController(viewController, animated: animated)
    }
}
